// 职责：负责用户相关的服务器地址的交互

import request from '@/utils/request';

// 1. 准备一个登录请求方法
export const req_login = ({ username, password }) => {
  return request({
    url: '/auth/login',
    method: 'post',
    data: {
      username,
      password
    }
  });
};
export const req_userInfo = () => {
  return request({
    url: '/auth/currentUser',
    method: 'get'
  });
};
